package org.cuatrovientos.erp.model;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
/**
 * 
 * @author CARLOS
 *
 */
public class Department {
	@NotNull(message="ID cannot be null")
	private int id;
	@NotNull(message="Name cannot be null")
	private String name;	
	@NotNull(message="Description cannot be null")
	private String Description;
	@NotNull(message="IdEmployee cannot be null")
	@Min(1)
	private int idemployee;
	
	public Department(){
		
	}

	public Department(int id, String name, String description, int idemployee) {
		super();
		this.id = id;
		this.name = name;
		Description = description;
		this.idemployee = idemployee;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return Description;
	}

	public void setDescription(String description) {
		Description = description;
	}

	public int getIdemployee() {
		return idemployee;
	}

	public void setIdemployee(int idemployee) {
		this.idemployee = idemployee;
	}

	@Override
	public String toString() {
		return "Department [id=" + id + ", name=" + name + ", Description="
				+ Description + ", idemployee=" + idemployee + "]";
	}
	
	
	
	
}
